MACRO(LOAD_HTSC2DATA os arch)
    MESSAGE(INFO "-------------LOAD_HTSC2DATA-------------------")
    SET(HTSC2DATA_DIR ${PROJECT_SOURCE_DIR}/3rdparty/htnc2data)
    MESSAGE(STATUS "PROJECT_SOURCE_DIR: ${PROJECT_SOURCE_DIR}")
    SET(HTSC2DATA_INCLUDE_DIR ${HTSC2DATA_DIR}/include)
    SET(HTSC2DATA_LIBRARY_DIR ${HTSC2DATA_DIR}/lib)

    IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
    
#     find_library(HT98SC2_SHARE_LIB
#     NAMES ht98sc2
#     PATHS ${HTSC2DATA_LIBRARY_DIR}
#     NO_DEFAULT_PATH
#     REQUIRED
#  )
# # 查找静态库 libhtsc2.a
# find_library(HTSC2_STATIC_LIB
#     NAMES htsc2
#     PATHS ${HTSC2DATA_LIBRARY_DIR}
#     NO_DEFAULT_PATH
#     REQUIRED
# )
SET(HT98SC2_SHARE_LIB ht98sc2 )
SET(HTSC2_STATIC_LIB  htsc2)

    ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
       SET(HTSC2DATA_LIBS )
    ENDIF (CMAKE_SYSTEM_NAME MATCHES "Linux")

    IF(HTSC2DATA_INCLUDE_DIR)
        MESSAGE(STATUS "HTSC2DATA_INCLUDE_DIR : ${HTSC2DATA_INCLUDE_DIR}")
        MESSAGE(STATUS "HTSC2DATA_LIBRARY_DIR : ${HTSC2DATA_LIBRARY_DIR}")
        # MESSAGE(STATUS "HTSC2DATA_LIBS : ${HTSC2DATA_LIBS}")
        MESSAGE(STATUS "HT98SC2_SHARE_LIB : ${HT98SC2_SHARE_LIB}")
        MESSAGE(STATUS "HTSC2_STATIC_LIB : ${HTSC2_STATIC_LIB}")
    ELSE()
        MESSAGE(FATAL_ERROR "HTSC2DATA not found!")
    ENDIF()
ENDMACRO()
